<!--作废订单指令-->
<div class="demo-modal">
	<div class="modal-header">
		<h4 class="modal-title" id="modal-title">
			编辑参数
			<i class="icon icon-guanbi2" ng-click="cancel()"></i>
		</h4>
	</div>
	<div class="modal-body" id="modal-body">
      
        <div style="padding-bottom: 11px;">参数值：</div>

    	<div class="dataList bo-bottom">
          <table class="table">
            <thead>
            <tr>
                <th width="200">参数值</th>
                <th width="200">排序</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-if="params.list.length<1" class="_loading">
                <td colspan="10">
                    <div class="no_data">数据为空</div>
                </td>
            </tr>
            <tr ng-repeat="(i,item) in params.list">
                <td class="time-sect">
                    <input type="text" ng-model="item.param_name" class="form-control" ng-if="params.param_id!=2">
                    <input type="text" ng-model="item.time_num" class="form-control bolkin" ng-if="params.param_id==2">
                    <ui-select ng-model="item.type" ng-if="params.param_id==2">
                        <ui-option ng-repeat="(i,items) in option.timeUnit track by $index" value="items.id" value="select">{{items.name}}</ui-option>
                    </ui-select>
                </td>
                <td>
                    <input type="text" ng-model="item.sort" class="form-control">
                </td>
                <td><i class="icon icon-shanchu" ng-click="deltItem(i,item)"></i></td>
            </tr>
            </tbody>
          </table>
        </div>
        <div class="push-one" ng-click="pushItem()">
            <i class="icon icon-btn-add"></i><span>添加一项</span>
        </div>
	</div>
	<div class="modal-footer">
        <button class="btn btn-primary" type="button" ng-click="ok()">确定提交</button>
	</div>
</div>